#include <iostream>
#include "vectorfunctions.h"

int main()
{
	int m, n, i;
	int a[100], b[100], c[100];
	cout<<"Length of array a : ";
	cin>>m;
	readVector(a, m);
	cout<<"Length of array b : ";
	cin>>n;
	readVector(b, n);
	for(i=0;i<min(m, n);i++)
		if(a[i]!=0 && b[i]!= 0)
			c[i]=lcm(a[i], b[i]);
		else 
			c[i]=111;
	printVector(c, min(m, n));
return 0;
}
